﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.CompoundPattern
{
    /// <summary>
    /// 适配器模式，鹅适配器，适配成鸭子
    /// </summary>
    public class GooseAdapter : IQuackable
    {
        Goose goose;

        public GooseAdapter(Goose goose)
        {
            this.goose = goose;
        }

        public void Quack()
        {
            this.goose.Honk();
        }
    }
}
